﻿using EFModel;
using IServices;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Y2.Filters;

namespace Y2.Controllers
{
    [LoginFilter]
    public class engage_resumeSpController : Controller
    {
        private readonly Iengage_resume he;

        public engage_resumeSpController(Iengage_resume he)
        {
            this.he = he;
        }

        public IActionResult engage_resumeSp()
        {
            return View();
        }

        public IActionResult engage_resumeSpUpdate(int? id)
        {
            ViewBag.res_id = id;
            return View();
        }
        //简历登记录用审批查询
        public async Task<IActionResult> QuqerSp(int currentPage, int pageSize)
        {
            return Content(JsonConvert.SerializeObject(await he.QuqerSp(currentPage, pageSize)));
        }
        //简历登记录用申请审批意见修改
        public async Task<int> Shysp(engage_resume _Resume)
        {
            return await he.Shysp(_Resume);
        }
    }
}
